import "reflect-metadata";

export function Controller(rootPath?: string) {
  return function <T extends { new (...args: any): any }>(targetClass: T) {
    Object.keys(targetClass.prototype).forEach((methodname) => {
      let reqPath = Reflect.getMetadata(
        "path",
        targetClass.prototype,
        methodname
      );
      console.log("reqPath:", reqPath);
    });
  };
}

export {};
